﻿@using Akso.Entities
@using Akso.Web.Areas.Mpa.Models.Common.Modals
@model Akso.Web.Areas.PSSModule.Models.ItemCategories.CreateOrEditItemCategoryModalViewModel
@Html.Partial("~/Areas/Mpa/Views/Common/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(Model.IsEditMode ? (L("Pages_PSSModule_ItemCategories_Edit") + ": " + Model.ItemCategory.ItemCategoryName) : L("Pages_PSSModule_ItemCategories_Create")))
<div class="modal-body">

    <form name="ObjectForm" role="form" novalidate class="form-validation">
        @if (Model.IsEditMode)
        {
            <input type="hidden" name="Id" value="@Model.ItemCategory.Id" />
        }

        <div class="form-group form-md-line-input form-md-floating-label no-hint">
            <input type="text" name="ItemCategoryName" value="@Model.ItemCategory.ItemCategoryName" class="form-control edited" required maxlength="@ItemCategory.MaxNameLength" />
            <label>@L("Pages_PSSModule_ItemCategories_GridColumn_CategoryName")</label>
        </div>
        
    </form>

</div>

@Html.Partial("~/Areas/Mpa/Views/Common/Modals/_ModalFooterWithSaveAndCancel.cshtml")
